package com.c201801020208.ybl.Adapters;

import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.c201801020208.ybl.Company.MyCompanyFirstFragment;

import java.util.List;

import static com.c201801020208.ybl.Company.ResumeScreeningFragment.mTitles;

public class CompanyFragmentAdapter extends FragmentPagerAdapter {
    private List<MyCompanyFirstFragment> fragments;

    public CompanyFragmentAdapter(@NonNull FragmentManager fm, List<MyCompanyFirstFragment> fragments) {
        super(fm);
        this.fragments = fragments;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return mTitles.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return mTitles[position];
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {

    }
}
